﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace State
{
  public  class Person
    {
      State state;
      public Person()
      {
          this.state = null;
      }
      public void SetState(State state)
      {
          this.state = state;
      }
      public State GetState()
      {
          return this.state;
      }
      public void Write()
      {
          this.state.Write();
      }
      public void Rest()
      {
          this.state.Play();
      }
    }
}
